
<div style='float:left;width:50%'>
	<select style='width:100%' id='service_index_conditionArea_serviceId'>
		<option value='none'>服务选择</option>
		<volist name='res_serviceType' id='vo'>
			<option value='{$vo.type_id}'>{$vo.type_name} - {$vo.type_id}</option>
		</volist>
	</select>
</div>

<script>
	$(function(){
		//服务id的状态保持
		if(sessionStorage.service_index_conditionArea_serviceId){
			$('#service_index_conditionArea_serviceId').find('option').each(function(){
				if($(this).val() == sessionStorage.service_index_conditionArea_serviceId){
					$(this).attr('selected',true)
				}
			});
		}else{
			sessionStorage.service_index_conditionArea_serviceId = $('#service_index_conditionArea_serviceId').find('option:selected').val();
		}
		$('#service_index_conditionArea_serviceId').change(function(){
			sessionStorage.service_index_conditionArea_serviceId = $(this).find('option:selected').val();
			clear_sess('pnow');		//清除sessionStorage的缓存
			location.reload(true);
		});
	});

</script>